<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<table border="1" cellpadding="1" cellspacing="1" width="500px">

    <td>序号</td>
    <td>用户编号</td>
    <td>用户姓名</td>
    <td>生日</td>
    <td>性别</td>
    <td>地址</td>
    <td>部门名称</td>
    </th>
    <c:forEach items="${list}" var="user" varStatus="vs">
        <tr>
            <td>${vs.count}</td>
            <td>${user.id}</td>
            <td>${user.username}</td>
            <td><fmt:formatDate value="${user.birthday}" pattern="yyyy-MM-dd"/></td>
            <td>${user.sex}</td>
            <td>${user.address}</td>
            <td>${user.dept.name}</td>
        </tr>
    </c:forEach>
</table>

</body>
</html>
